package ioccontainer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class BeanDefinition {

	private Map<String, String> attributes = new HashMap<>();
	private List<Map<String, String>> constructorArgs = new ArrayList<>();
	private List<Map<String, String>> properties = new ArrayList<>();
	
	public void addAttribute(String name, String clazz) {
		attributes.put(name, clazz);
	}
	
	public void addConstructorArg(String name, String value) {	
		Map<String, String> args = new HashMap<>();
		args.put(name, value);
		constructorArgs.add(args);
	}
	
	public void addProperty(String name, String nameValue, String valueName, String value) {
		Map<String, String> prop = new HashMap<>();
		prop.put(name, nameValue);
		prop.put(valueName, value);
		properties.add(prop);
	}

	public Map<String, String> getAttributes() {
		return attributes;
	}

	public List<Map<String, String>> getConstructorArgs() {
		return constructorArgs;
	}

	public List<Map<String, String>> getProperties() {
		return properties;
	}
	
}
